home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 4-Demos / Apple Demos / Tutorials / Display Card 4•8⁄8•24 Training / Display Card 4•8_8•24 Training / card_24119.txt < prev    next >
Text File  |  1990-03-19  |  14KB  |  651 lines

  1. -- card: 24119 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 10579
  5. -- name: test 4
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global inprogress
  9.   if inprogress is false then show cd fld "instruction 1"
  10.   hide cd fld "ClicktoContinue"
  11.   show cd btn "Check my Answers"
  12.   --repeat with f = 15 to 20
  13.   --hide cd fld f
  14.   --end repeat
  15.   repeat with x = 1 to 5
  16.     hide cd fld ("responses" && x)
  17.   end repeat
  18. end openCard
  19.  
  20. on closeCard
  21.   global maploc, cardloc
  22.   put word 1 of the short name of this card into maploc
  23.   put word 2 of the short name of this card into cardloc
  24.   push card
  25. end closeCard
  26.  
  27.  
  28.  
  29. -- part 1 (field)
  30. -- low flags: 01
  31. -- high flags: 4000
  32. -- rect: left=443 top=95 right=112 bottom=507
  33. -- title width / last selected line: 0
  34. -- icon id / first selected line: 0 / 0
  35. -- text alignment: 0
  36. -- font id: 156
  37. -- text size: 14
  38. -- style flags: 0
  39. -- line height: 16
  40. -- part name: answer 1
  41. ----- HyperTalk script -----
  42. on mouseup
  43.   toggleResponses
  44. end mouseup
  45.  
  46.  
  47.  
  48. -- part 2 (field)
  49. -- low flags: 01
  50. -- high flags: 4000
  51. -- rect: left=385 top=158 right=176 bottom=492
  52. -- title width / last selected line: 0
  53. -- icon id / first selected line: 0 / 0
  54. -- text alignment: 0
  55. -- font id: 156
  56. -- text size: 14
  57. -- style flags: 0
  58. -- line height: 16
  59. -- part name: answer 2
  60. ----- HyperTalk script -----
  61. on mouseup
  62.   toggleResponses
  63. end mouseup
  64.  
  65.  
  66.  
  67. -- part 3 (field)
  68. -- low flags: 01
  69. -- high flags: 4000
  70. -- rect: left=465 top=223 right=241 bottom=488
  71. -- title width / last selected line: 0
  72. -- icon id / first selected line: 0 / 0
  73. -- text alignment: 0
  74. -- font id: 156
  75. -- text size: 14
  76. -- style flags: 0
  77. -- line height: 16
  78. -- part name: answer 3
  79. ----- HyperTalk script -----
  80. on mouseup
  81.   toggleResponses
  82. end mouseup
  83.  
  84.  
  85. -- part 6 (field)
  86. -- low flags: 81
  87. -- high flags: 2004
  88. -- rect: left=26 top=55 right=133 bottom=108
  89. -- title width / last selected line: 0
  90. -- icon id / first selected line: 0 / 0
  91. -- text alignment: 0
  92. -- font id: 158
  93. -- text size: 14
  94. -- style flags: 0
  95. -- line height: 16
  96. -- part name: responses 1
  97. ----- HyperTalk script -----
  98. on mouseup
  99.   chooseResponses
  100. end mouseup
  101.  
  102.  
  103.  
  104. -- part 8 (field)
  105. -- low flags: 81
  106. -- high flags: 2004
  107. -- rect: left=29 top=115 right=191 bottom=116
  108. -- title width / last selected line: 0
  109. -- icon id / first selected line: 0 / 0
  110. -- text alignment: 0
  111. -- font id: 158
  112. -- text size: 14
  113. -- style flags: 0
  114. -- line height: 16
  115. -- part name: responses 2
  116. ----- HyperTalk script -----
  117. on mouseup
  118.   chooseResponses
  119. end mouseup
  120.  
  121.  
  122.  
  123. -- part 9 (field)
  124. -- low flags: 81
  125. -- high flags: 2004
  126. -- rect: left=82 top=194 right=270 bottom=109
  127. -- title width / last selected line: 0
  128. -- icon id / first selected line: 0 / 0
  129. -- text alignment: 0
  130. -- font id: 158
  131. -- text size: 14
  132. -- style flags: 0
  133. -- line height: 16
  134. -- part name: responses 3
  135. ----- HyperTalk script -----
  136. on mouseup
  137.   chooseResponses
  138. end mouseup
  139.  
  140.  
  141.  
  142. -- part 10 (field)
  143. -- low flags: 81
  144. -- high flags: 2004
  145. -- rect: left=12 top=269 right=342 bottom=49
  146. -- title width / last selected line: 0
  147. -- icon id / first selected line: 0 / 0
  148. -- text alignment: 0
  149. -- font id: 158
  150. -- text size: 14
  151. -- style flags: 0
  152. -- line height: 16
  153. -- part name: responses 4
  154. ----- HyperTalk script -----
  155. on mouseup
  156.   chooseResponses
  157. end mouseup
  158.  
  159.  
  160.  
  161. -- part 11 (field)
  162. -- low flags: 81
  163. -- high flags: 2004
  164. -- rect: left=7 top=140 right=218 bottom=79
  165. -- title width / last selected line: 0
  166. -- icon id / first selected line: 0 / 0
  167. -- text alignment: 0
  168. -- font id: 158
  169. -- text size: 14
  170. -- style flags: 0
  171. -- line height: 16
  172. -- part name: responses 5
  173. ----- HyperTalk script -----
  174. on mouseup
  175.   chooseResponses
  176. end mouseup
  177.  
  178.  
  179.  
  180. -- part 7 (field)
  181. -- low flags: 81
  182. -- high flags: 0007
  183. -- rect: left=384 top=19 right=105 bottom=512
  184. -- title width / last selected line: 0
  185. -- icon id / first selected line: 0 / 0
  186. -- text alignment: 0
  187. -- font id: 3
  188. -- text size: 9
  189. -- style flags: 0
  190. -- line height: 12
  191. -- part name: Your Responses
  192.  
  193.  
  194. -- part 13 (field)
  195. -- low flags: 81
  196. -- high flags: 0002
  197. -- rect: left=369 top=19 right=105 bottom=385
  198. -- title width / last selected line: 0
  199. -- icon id / first selected line: 0 / 0
  200. -- text alignment: 0
  201. -- font id: 3
  202. -- text size: 9
  203. -- style flags: 0
  204. -- line height: 12
  205. -- part name: Your Answers
  206.  
  207.  
  208. -- part 14 (field)
  209. -- low flags: 81
  210. -- high flags: 0002
  211. -- rect: left=88 top=3 right=48 bottom=106
  212. -- title width / last selected line: 0
  213. -- icon id / first selected line: 0 / 0
  214. -- text alignment: 0
  215. -- font id: 3
  216. -- text size: 9
  217. -- style flags: 0
  218. -- line height: 12
  219. -- part name: our Answers
  220.  
  221.  
  222. -- part 15 (field)
  223. -- low flags: 81
  224. -- high flags: 0002
  225. -- rect: left=0 top=25 right=113 bottom=53
  226. -- title width / last selected line: 0
  227. -- icon id / first selected line: 0 / 0
  228. -- text alignment: 0
  229. -- font id: 3
  230. -- text size: 9
  231. -- style flags: 0
  232. -- line height: 12
  233. -- part name: memoList
  234.  
  235.  
  236. -- part 18 (button)
  237. -- low flags: 00
  238. -- high flags: A003
  239. -- rect: left=132 top=312 right=339 bottom=274
  240. -- title width / last selected line: 0
  241. -- icon id / first selected line: 0 / 0
  242. -- text alignment: 1
  243. -- font id: 0
  244. -- text size: 12
  245. -- style flags: 0
  246. -- line height: 16
  247. -- part name: Check my answers
  248. ----- HyperTalk script -----
  249. on mouseUp
  250.   global memolist, testNumber, inProgress
  251.   put "" into memolist
  252.   set the cursor to busy
  253.   put 1 into r
  254.   repeat with r = 1 to the number of lines in cd fld "Our Answers"
  255.     if line r of cd fld "your Responses" is "" then
  256.       answer "You're not done, yet!" with "Ooops!"
  257.       put true into tryAgain
  258.       exit mouseup
  259.     else
  260.       put 1 into rLine
  261.       put false into tryAgain
  262.       repeat with r = 1 to the number of lines of cd fld "Our Answers"
  263.         if line rLine of cd fld "Your Answers" is in line rLine of cd fld "Our Answers" then
  264.           put true into okAnswer
  265.         else
  266.           put false into okAnswer
  267.         end if
  268.         if okAnswer then
  269.           put true into line rline of cd fld "memoList"
  270.           put true into item r of memolist
  271.         else
  272.           put false into line rline of cd fld "memolist"
  273.           put false into item r of memolist
  274.         end if
  275.         add 1 to rLine
  276.       end repeat
  277.     end if
  278.   end repeat
  279.   if tryAgain is false then
  280.     set cursor to hand
  281.     hide cd btn "Check my answers"
  282.     show cd fld "clicktocontinue"
  283.   end if
  284.  
  285.   put "4" into testnumber
  286.   repeat with i = 1 to the number of lines of cd fld "MemoList"
  287.     put ("review" && i) into theButton
  288.     set the hilite of cd btn theButton to true
  289.     get line i of cd fld "MemoList"
  290.     if it is true then
  291.       put ("comment" && i && "true") into theComment
  292.       show cd fld theComment
  293.     else
  294.       put ("comment" && i && "false") into theComment
  295.       show cd fld theComment
  296.     end if
  297.     wait until the mouseclick
  298.     set the hilite of cd btn theButton to false
  299.     hide cd fld theComment
  300.   end repeat
  301.   hide cd fld "clicktocontinue"
  302.   if cd fld "MemoList" contains "False" then
  303.     answer "Do you want to try again?" with "Yes" or "No"
  304.     if it is "Yes" then
  305.       put empty into cd fld "memolist"
  306.       put true into inProgress
  307.       show cd btn "Check my Answers"
  308.       send opencard
  309.       exit mouseup
  310.     else
  311.       ScoreReview
  312.     end if
  313.   else
  314.     ScoreReview
  315.   end if
  316. end mouseUp
  317.  
  318.  
  319.  
  320. -- part 24 (button)
  321. -- low flags: 00
  322. -- high flags: 2000
  323. -- rect: left=442 top=92 right=113 bottom=506
  324. -- title width / last selected line: 0
  325. -- icon id / first selected line: 0 / 0
  326. -- text alignment: 1
  327. -- font id: 0
  328. -- text size: 12
  329. -- style flags: 0
  330. -- line height: 16
  331. -- part name: review 1
  332. ----- HyperTalk script -----
  333. on mouseUp
  334.   hide card field "instruction 1"
  335.   toggleResponses
  336. end mouseUp
  337.  
  338.  
  339.  
  340. -- part 25 (button)
  341. -- low flags: 00
  342. -- high flags: 2000
  343. -- rect: left=386 top=156 right=175 bottom=495
  344. -- title width / last selected line: 0
  345. -- icon id / first selected line: 0 / 0
  346. -- text alignment: 1
  347. -- font id: 0
  348. -- text size: 12
  349. -- style flags: 0
  350. -- line height: 16
  351. -- part name: review 2
  352. ----- HyperTalk script -----
  353. on mouseUp
  354.   toggleResponses
  355. end mouseUp
  356.  
  357.  
  358.  
  359. -- part 26 (button)
  360. -- low flags: 00
  361. -- high flags: 2000
  362. -- rect: left=465 top=222 right=240 bottom=485
  363. -- title width / last selected line: 0
  364. -- icon id / first selected line: 0 / 0
  365. -- text alignment: 1
  366. -- font id: 0
  367. -- text size: 12
  368. -- style flags: 0
  369. -- line height: 16
  370. -- part name: review 3
  371. ----- HyperTalk script -----
  372. on mouseUp
  373.   toggleResponses
  374. end mouseUp
  375.  
  376.  
  377.  
  378. -- part 29 (field)
  379. -- low flags: 81
  380. -- high flags: 2004
  381. -- rect: left=33 top=0 right=81 bottom=319
  382. -- title width / last selected line: 0
  383. -- icon id / first selected line: 0 / 0
  384. -- text alignment: 1
  385. -- font id: 158
  386. -- text size: 14
  387. -- style flags: 0
  388. -- line height: 18
  389. -- part name: Comment 1 false
  390.  
  391.  
  392. -- part 30 (field)
  393. -- low flags: 81
  394. -- high flags: 2004
  395. -- rect: left=109 top=132 right=247 bottom=398
  396. -- title width / last selected line: 0
  397. -- icon id / first selected line: 0 / 0
  398. -- text alignment: 1
  399. -- font id: 158
  400. -- text size: 14
  401. -- style flags: 0
  402. -- line height: 18
  403. -- part name: Comment 1 true
  404.  
  405.  
  406. -- part 31 (field)
  407. -- low flags: 81
  408. -- high flags: 2004
  409. -- rect: left=31 top=73 right=153 bottom=368
  410. -- title width / last selected line: 0
  411. -- icon id / first selected line: 0 / 0
  412. -- text alignment: 1
  413. -- font id: 158
  414. -- text size: 14
  415. -- style flags: 0
  416. -- line height: 18
  417. -- part name: Comment 2 false
  418.  
  419.  
  420. -- part 32 (field)
  421. -- low flags: 81
  422. -- high flags: 2004
  423. -- rect: left=79 top=195 right=290 bottom=338
  424. -- title width / last selected line: 0
  425. -- icon id / first selected line: 0 / 0
  426. -- text alignment: 1
  427. -- font id: 158
  428. -- text size: 14
  429. -- style flags: 0
  430. -- line height: 18
  431. -- part name: Comment 2 true
  432.  
  433.  
  434. -- part 34 (field)
  435. -- low flags: 81
  436. -- high flags: 2004
  437. -- rect: left=112 top=159 right=222 bottom=435
  438. -- title width / last selected line: 0
  439. -- icon id / first selected line: 0 / 0
  440. -- text alignment: 1
  441. -- font id: 158
  442. -- text size: 14
  443. -- style flags: 0
  444. -- line height: 18
  445. -- part name: Comment 3 false
  446.  
  447.  
  448. -- part 35 (field)
  449. -- low flags: 81
  450. -- high flags: 2004
  451. -- rect: left=276 top=158 right=219 bottom=442
  452. -- title width / last selected line: 0
  453. -- icon id / first selected line: 0 / 0
  454. -- text alignment: 1
  455. -- font id: 158
  456. -- text size: 14
  457. -- style flags: 0
  458. -- line height: 18
  459. -- part name: Comment 3 true
  460.  
  461.  
  462. -- part 41 (field)
  463. -- low flags: 81
  464. -- high flags: 2004
  465. -- rect: left=59 top=312 right=341 bottom=277
  466. -- title width / last selected line: 0
  467. -- icon id / first selected line: 0 / 0
  468. -- text alignment: 1
  469. -- font id: 157
  470. -- text size: 14
  471. -- style flags: 0
  472. -- line height: 18
  473. -- part name: ClicktoContinue
  474.  
  475.  
  476. -- part 45 (field)
  477. -- low flags: 81
  478. -- high flags: 0007
  479. -- rect: left=0 top=20 right=331 bottom=129
  480. -- title width / last selected line: 0
  481. -- icon id / first selected line: 0 / 0
  482. -- text alignment: 0
  483. -- font id: 156
  484. -- text size: 14
  485. -- style flags: 0
  486. -- line height: 18
  487. -- part name: instruction 1
  488. ----- HyperTalk script -----
  489. on mouseup
  490.   hide me
  491. end mouseup
  492.  
  493.  
  494.  
  495. -- part 48 (button)
  496. -- low flags: 00
  497. -- high flags: 2000
  498. -- rect: left=484 top=317 right=342 bottom=512
  499. -- title width / last selected line: 0
  500. -- icon id / first selected line: 18613 / 18613
  501. -- text alignment: 1
  502. -- font id: 0
  503. -- text size: 12
  504. -- style flags: 0
  505. -- line height: 16
  506. -- part name: return
  507. ----- HyperTalk script -----
  508. on mouseUp
  509.   go card "test 0"
  510. end mouseUp
  511.  
  512.  
  513.  
  514. -- part contents for background part 10
  515. ----- text -----
  516. Compatability (Hardware)
  517.  
  518.  
  519. -- part contents for background part 4
  520. ----- text -----
  521. Macintosh Display Card 4‚Ä¢8 and 8‚Ä¢24
  522.  
  523. -- part contents for background part 5
  524. ----- text -----
  525. Training Evaluation
  526.  
  527. -- part contents for card part 6
  528. ----- text -----
  529. all
  530. RGB
  531. all color
  532. 24-bit
  533.  
  534. -- part contents for card part 8
  535. ----- text -----
  536. new
  537. modular
  538. color
  539. 16MHz
  540.  
  541. -- part contents for card part 9
  542. ----- text -----
  543. 2
  544. 4
  545. 3
  546. 1
  547.  
  548.  
  549. -- part contents for card part 10
  550. ----- text -----
  551. 10
  552. 20
  553. 30
  554. 50
  555.  
  556. -- part contents for card part 11
  557. ----- text -----
  558. three
  559. five
  560. ten
  561. 150
  562.  
  563. -- part contents for card part 14
  564. ----- text -----
  565. 1
  566. 2
  567. 4
  568.  
  569. -- part contents for card part 29
  570. ----- text -----
  571.  
  572. No.  This is a major advantage.  Please review for this information.
  573.  
  574. -- part contents for card part 30
  575. ----- text -----
  576.  
  577. Absolutely!  This card automatically checks to see which monitor is connected and makes the appropriate adjustments.  (Plug-'n-Play)
  578.  
  579. -- part contents for card part 31
  580. ----- text -----
  581.  
  582. Wrong.  The Display Cards need slots to operate.
  583.  
  584. -- part contents for card part 32
  585. ----- text -----
  586.  
  587. Yes.  These Display Cards can only be used in a Modular Macintosh II, IIx, IIcx, IIci or Zone 5.
  588.  
  589. -- part contents for card part 34
  590. ----- text -----
  591.  
  592. No.  This only requires a single NuBus slot.
  593.  
  594. -- part contents for card part 35
  595. ----- text -----
  596.  
  597. Correct! 
  598.  
  599. -- part contents for card part 41
  600. ----- text -----
  601. Click the mouse to continue.
  602.  
  603.  
  604. -- part contents for card part 45
  605. ----- text -----
  606. Instructions: 
  607. (click on this text to hide it)
  608.  
  609. 1.  Click on the   blank line. A list of choices appears
  610.  
  611. 2.  Click on the choice you want, it appears in the sentence. 
  612.  
  613. You can change any of your choices by clicking on it, then selecting another choice.
  614.  
  615. 3.  When you‚Äôve completed the entries, click on the ‚ÄúCheck my Answers‚Äù button.
  616.  
  617. During the review, you‚Äôll find out whether you made the correct choices.
  618.  
  619. Afterwards, you can try again or go back to the menu for this section.
  620.  
  621. -- part contents for background part 6
  622. ----- text -----
  623.  
  624. The  Macintosh Display Cards 4‚Ä¢8 and 8‚Ä¢24 support                                 
  625. Apple displays.
  626.  
  627.  
  628. These display cards can be used only with                                
  629. Macintosh computers.
  630.  
  631.  
  632. The total number of NuBus slots these cards requires is        .
  633.  
  634.  
  635. -- part contents for card part 7
  636. ----- text -----
  637.  
  638.  
  639.  
  640.  
  641. -- part contents for card part 13
  642. ----- text -----
  643. 5
  644. 5
  645. 5
  646.  
  647. -- part contents for card part 15
  648. ----- text -----
  649. true
  650. true
  651. true